package fr.budokan.beans;

import java.util.ArrayList;

public class Category implements CompositeElement {

	
	private ArrayList<CompositeElement> children;
	private String name;
	private String shortDescription;

	public Category(String name){
		this.name = name;
		children = new ArrayList<CompositeElement>();
	}
	
	
	public ArrayList<CompositeElement> getChildren() {
		return children;
	}



	@Override
	public String getName() {
		return name;
	}



	@Override
	public String getShortDescription() {
		return shortDescription;
	}



	@Override
	public boolean isLeaf() {
		return false;
	}


	public void setName(String name) {
		this.name = name;
	}


	@Override
	public int getChildCount() {
		return children.size();
	}
	
	
	
}
